package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.wemedia.pojos.WmNewsMaterial;

import java.util.List;

/**
 * @author DiXiaoNie
 * @since 2022/12/21 17:45
 */

public interface WmNewsMaterialService extends IService<WmNewsMaterial> {
    /**
     * 保存关系
     *
     * @param materialIds 材料标识
     * @param newsId      消息id
     * @param type        类型
     * @author DiXiaoNie
     * @date 2022/12/21
     */
    void saveRelations(List<Integer> materialIds, Integer newsId, Short type);
}
